﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FTchinaMVC.Controllers
{
    public class ManageController : Controller
    {
        //
        // GET: /Manage/

        public ActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 获取导航菜单
        /// </summary>
        /// <returns></returns>
        public ActionResult GetMenu()
        {
            string tmp = @"[{ id: 1, pId: 0, name: 'zTree Home', url: '/home/', target: 'mainFrame' },
        { id: 2, pId: 0, name: 'zTree in Google', url: '/book/', target: 'mainFrame' },
        { id: 3, pId: 0, name: 'zTree in Iteye', url: 'http://ztreeapi.iteye.com/', target: 'mainFrame' },
        { id: 4, pId: 0, name: 'Nothing...', url: '', target: 'mainFrame' }]";
            return Content(tmp);
        }
    }
}
